<html>
<head><meta charset="utf-8"><title>Allow wparam and lparam in similar_names · clippy · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/index.html">clippy</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Allow.20wparam.20and.20lparam.20in.20similar_names.html">Allow wparam and lparam in similar_names</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="239749946"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Allow%20wparam%20and%20lparam%20in%20similar_names/near/239749946" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Takayuki Nakata <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Allow.20wparam.20and.20lparam.20in.20similar_names.html#239749946">(May 21 2021 at 13:28)</a>:</h4>
<p>I'm reviewing <a href="https://github.com/rust-lang/rust-clippy/pull/7255">https://github.com/rust-lang/rust-clippy/pull/7255</a>. The code looks good to me. But, I'm not familiar to Windows, so I don't know if it makes sense  to allow <code>wparam</code> and <code>lparam</code>. Does anyone know if this is reasonable?</p>



<a name="239750548"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Allow%20wparam%20and%20lparam%20in%20similar_names/near/239750548" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> xFrednet <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Allow.20wparam.20and.20lparam.20in.20similar_names.html#239750548">(May 21 2021 at 13:33)</a>:</h4>
<p>They are used by direct callbacks from window handlers (See <a href="https://docs.microsoft.com/en-us/previous-versions/windows/desktop/legacy/ms633573(v=vs.85)">Microsoft doc</a>). These names are also used in practice, at least I have done that, and I've seen other code do the same. (When they are working on such a low level) -&gt; <span aria-label="+1" class="emoji emoji-1f44d" role="img" title="+1">:+1:</span>  from me</p>



<a name="239750834"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Allow%20wparam%20and%20lparam%20in%20similar_names/near/239750834" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> xFrednet <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Allow.20wparam.20and.20lparam.20in.20similar_names.html#239750834">(May 21 2021 at 13:34)</a>:</h4>
<p>Side note: They are more often written as <code>wParam</code> and <code>lParam</code> which a capital <code>P </code> I'm not sure if that is important in this context?</p>



<a name="239805063"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Allow%20wparam%20and%20lparam%20in%20similar_names/near/239805063" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jason Newcomb <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Allow.20wparam.20and.20lparam.20in.20similar_names.html#239805063">(May 21 2021 at 19:57)</a>:</h4>
<p>I'll second that. They're the only names I've ever seen used for message handlers on windows.</p>



<a name="239988589"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Allow%20wparam%20and%20lparam%20in%20similar_names/near/239988589" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Takayuki Nakata <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Allow.20wparam.20and.20lparam.20in.20similar_names.html#239988589">(May 24 2021 at 00:18)</a>:</h4>
<p>Thanks for your comments! It looks reasonable!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>